import SMERouter from "sme-router";
import active from './active';
import positionController from '../controller/positionController';
import userController from '../controller/userController';

userController.render();
const router = new SMERouter("content");

router.use(active);
router.route('/', (req, res, next) => {
    res.render("home page")
})
router.route('/position', positionController.render)
router.route('*', (req, res, next) => {
    res.redirect('/');//默认情况下是home
})

export default router;